<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <title>新增角色</title>
    <th:block th:include="~{common/common::commonHead}"/>
</head>
<body data-width="400" data-height="300">
<div class="container-fluid">
    <form class="form-horizontal" role="form" th:action="@{/role/addRole}">
        <div class="form-group">
            <label class="col-xs-4 control-label"> 角色名称：</label>
            <div class="col-xs-8">
                <div class="iconic-input right">
                    <input name="roleName" type="text" class="form-control spinner" required maxlength="20" placeholder="1~20位字符">
                </div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-4 control-label"> 所属组织：</label>
            <div class="col-xs-8">
                <select name="orgId" class="form-control spinner" data-url="org/listOrg" data-value-field="id" data-text-field="orgName" required></select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-4 control-label"> 角色状态：</label>
            <div class="col-xs-8">
                <select name="roleStatus" class="form-control spinner" data-url="role/listRoleStatus" data-value-field="id" data-text-field="text" required></select>
            </div>
        </div>
    </form>
</div>
</body>
</html>